package p270jp.pxv.android.notification.presentation.activity;

import android.content.ComponentCallbacks;
import android.os.Bundle;
import android.support.p024v4.media.C0261e;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import androidx.compose.p026ui.platform.C0536v1;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.google.android.material.appbar.MaterialToolbar;
import net.pixiv.charcoal.android.view.charcoalSwitch.CharcoalSwitch;
import p014ae.C0098j6;
import p014ae.View$OnClickListenerC0054c;
import p047bg.C1124a;
import p062c4.ViewBindings;
import p064c6.Preconditions;
import p134ei.AnalyticsScreenName;
import p184gi.ScreenView;
import p189gn.AbstractC3435a;
import p211hi.FirebaseAnalyticsAction;
import p216hn.Lambda;
import p216hn.Reflection;
import p265jk.ActivityNotificationSettingsBinding;
import p265jk.ListItemNotificationBinding;
import p265jk.ListItemNotificationPushBinding;
import p265jk.ListItemNotificationPushPreviewBinding;
import p265jk.ListItemNotificationTypeItemBinding;
import p265jk.ListItemNotificationTypeItemPushBinding;
import p270jp.pxv.android.R;
import p270jp.pxv.android.commonObjects.model.NotificationSettingMethod;
import p270jp.pxv.android.commonObjects.model.NotificationSettingType;
import p310lc.C4621b;
import p325m0.C4721b;
import p325m0.MutabilityOwnership;
import p337mc.GroupieAdapter;
import p364nc.BindableItem;
import p372nk.AbstractActivityC5377b;
import p372nk.C5380g;
import p372nk.C5381h;
import p372nk.C5382i;
import p372nk.C5383k;
import p425pk.C5609f;
import p425pk.C5613g;
import p425pk.C5615h;
import p425pk.NotificationSettingsAction;
import p425pk.NotificationSettingsStore;
import p467rd.subscribers;
import p579vo.Qualifier;
import p603wm.AbstractC6949c;
import p625xi.LegacyNavigation;
import p645yc.AndroidSchedulers;
import p671zc.CompositeDisposable;
import p671zc.Disposable;

/* compiled from: NotificationSettingsActivity.kt */
/* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity */
/* loaded from: classes2.dex */
public final class NotificationSettingsActivity extends AbstractActivityC5377b {

    /* renamed from: B */
    public static final /* synthetic */ int f19162B;

    /* renamed from: v */
    public final AbstractC6949c f19164v = C4621b.m3851a(this, C4280f.f19186c);

    /* renamed from: w */
    public final GroupieAdapter f19165w = new GroupieAdapter();

    /* renamed from: x */
    public final AbstractC6949c f19166x = Preconditions.m9802P(1, new C4281g(this, null, null));

    /* renamed from: y */
    public final AbstractC6949c f19167y = Preconditions.m9802P(1, new C4282h(this, null, null));

    /* renamed from: z */
    public final AbstractC6949c f19168z = Preconditions.m9802P(1, new C4283i(this, null, null));

    /* renamed from: A */
    public final CompositeDisposable f19163A = new CompositeDisposable();

    /* compiled from: NotificationSettingsActivity.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$a */
    /* loaded from: classes2.dex */
    public static final class C4275a extends BindableItem<ListItemNotificationPushBinding> {

        /* renamed from: e */
        public static final /* synthetic */ int f19169e;

        /* renamed from: d */
        public final C5609f f19170d;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4275a(C5609f fVar) {
            super(0);
            MutabilityOwnership.m3745m(fVar, "actionCreator");
            this.f19170d = fVar;
        }

        @Override // p337mc.Item
        /* renamed from: b */
        public int mo3603b() {
            return R.layout.list_item_notification_push;
        }

        @Override // p364nc.BindableItem
        /* renamed from: e */
        public void mo3420e(ListItemNotificationPushBinding fVar, int i) {
            ListItemNotificationPushBinding fVar2 = fVar;
            MutabilityOwnership.m3745m(fVar2, "viewBinding");
            fVar2.f18245a.setOnClickListener(new View$OnClickListenerC0054c(this, 21));
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof C4275a) && MutabilityOwnership.m3749h(this.f19170d, ((C4275a) obj).f19170d);
        }

        @Override // p364nc.BindableItem
        /* renamed from: f */
        public ListItemNotificationPushBinding mo3419f(View view) {
            MutabilityOwnership.m3745m(view, "view");
            TextView textView = (TextView) ViewBindings.m9835b(view, R.id.title);
            if (textView != null) {
                return new ListItemNotificationPushBinding((ConstraintLayout) view, textView);
            }
            throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(R.id.title)));
        }

        public int hashCode() {
            return this.f19170d.hashCode();
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("NotificationPushItem(actionCreator=");
            c.append(this.f19170d);
            c.append(')');
            return c.toString();
        }
    }

    /* compiled from: NotificationSettingsActivity.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$b */
    /* loaded from: classes2.dex */
    public static final class C4276b extends BindableItem<ListItemNotificationPushPreviewBinding> {

        /* renamed from: d */
        public final C5609f f19171d;

        /* renamed from: e */
        public final boolean f19172e;

        /* renamed from: f */
        public boolean f19173f;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4276b(C5609f fVar, boolean z) {
            super(0);
            MutabilityOwnership.m3745m(fVar, "actionCreator");
            this.f19171d = fVar;
            this.f19172e = z;
            this.f19173f = z;
        }

        @Override // p337mc.Item
        /* renamed from: b */
        public int mo3603b() {
            return R.layout.list_item_notification_push_preview;
        }

        @Override // p364nc.BindableItem
        /* renamed from: e */
        public void mo3420e(ListItemNotificationPushPreviewBinding gVar, int i) {
            ListItemNotificationPushPreviewBinding gVar2 = gVar;
            MutabilityOwnership.m3745m(gVar2, "viewBinding");
            gVar2.f18247b.setOnCheckedChangeListener(null);
            gVar2.f18247b.setChecked(this.f19173f);
            gVar2.f18247b.setOnCheckedChangeListener(new C5380g(this));
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C4276b)) {
                return false;
            }
            C4276b bVar = (C4276b) obj;
            return MutabilityOwnership.m3749h(this.f19171d, bVar.f19171d) && this.f19172e == bVar.f19172e;
        }

        @Override // p364nc.BindableItem
        /* renamed from: f */
        public ListItemNotificationPushPreviewBinding mo3419f(View view) {
            MutabilityOwnership.m3745m(view, "view");
            int i = R.id.description;
            TextView textView = (TextView) ViewBindings.m9835b(view, R.id.description);
            if (textView != null) {
                i = R.id.switch0;
                CharcoalSwitch charcoalSwitch = (CharcoalSwitch) ViewBindings.m9835b(view, R.id.switch0);
                if (charcoalSwitch != null) {
                    i = R.id.title;
                    TextView textView2 = (TextView) ViewBindings.m9835b(view, R.id.title);
                    if (textView2 != null) {
                        return new ListItemNotificationPushPreviewBinding((ConstraintLayout) view, textView, charcoalSwitch, textView2);
                    }
                }
            }
            throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
        }

        public int hashCode() {
            int hashCode = this.f19171d.hashCode() * 31;
            boolean z = this.f19172e;
            if (z) {
                z = true;
            }
            int i = z ? 1 : 0;
            int i2 = z ? 1 : 0;
            int i3 = z ? 1 : 0;
            return hashCode + i;
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("NotificationPushPreviewItem(actionCreator=");
            c.append(this.f19171d);
            c.append(", enabledPushPreview=");
            return C4721b.m3753a(c, this.f19172e, ')');
        }
    }

    /* compiled from: NotificationSettingsActivity.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$c */
    /* loaded from: classes2.dex */
    public static final class C4277c extends BindableItem<ListItemNotificationBinding> {

        /* renamed from: g */
        public static final /* synthetic */ int f19174g;

        /* renamed from: d */
        public final C5609f f19175d;

        /* renamed from: e */
        public final boolean f19176e;

        /* renamed from: f */
        public boolean f19177f;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4277c(C5609f fVar, boolean z) {
            super(0);
            MutabilityOwnership.m3745m(fVar, "actionCreator");
            this.f19175d = fVar;
            this.f19176e = z;
            this.f19177f = z;
        }

        @Override // p337mc.Item
        /* renamed from: b */
        public int mo3603b() {
            return R.layout.list_item_notification;
        }

        @Override // p364nc.BindableItem
        /* renamed from: e */
        public void mo3420e(ListItemNotificationBinding cVar, int i) {
            ListItemNotificationBinding cVar2 = cVar;
            MutabilityOwnership.m3745m(cVar2, "viewBinding");
            cVar2.f18233b.setOnCheckedChangeListener(null);
            cVar2.f18233b.setChecked(this.f19177f);
            cVar2.f18233b.setOnCheckedChangeListener(new C0098j6(this, 1));
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C4277c)) {
                return false;
            }
            C4277c cVar = (C4277c) obj;
            return MutabilityOwnership.m3749h(this.f19175d, cVar.f19175d) && this.f19176e == cVar.f19176e;
        }

        @Override // p364nc.BindableItem
        /* renamed from: f */
        public ListItemNotificationBinding mo3419f(View view) {
            MutabilityOwnership.m3745m(view, "view");
            int i = R.id.switch0;
            CharcoalSwitch charcoalSwitch = (CharcoalSwitch) ViewBindings.m9835b(view, R.id.switch0);
            if (charcoalSwitch != null) {
                i = R.id.title;
                TextView textView = (TextView) ViewBindings.m9835b(view, R.id.title);
                if (textView != null) {
                    return new ListItemNotificationBinding((ConstraintLayout) view, charcoalSwitch, textView);
                }
            }
            throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
        }

        public int hashCode() {
            int hashCode = this.f19175d.hashCode() * 31;
            boolean z = this.f19176e;
            if (z) {
                z = true;
            }
            int i = z ? 1 : 0;
            int i2 = z ? 1 : 0;
            int i3 = z ? 1 : 0;
            return hashCode + i;
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("NotificationReceiveItem(actionCreator=");
            c.append(this.f19175d);
            c.append(", enabledNotification=");
            return C4721b.m3753a(c, this.f19176e, ')');
        }
    }

    /* compiled from: NotificationSettingsActivity.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$d */
    /* loaded from: classes2.dex */
    public static final class C4278d extends BindableItem<ListItemNotificationTypeItemBinding> {

        /* renamed from: d */
        public final C5609f f19178d;

        /* renamed from: e */
        public final NotificationSettingType f19179e;

        /* renamed from: f */
        public final NotificationSettingMethod f19180f;

        /* renamed from: g */
        public boolean f19181g;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4278d(C5609f fVar, NotificationSettingType notificationSettingType, NotificationSettingMethod notificationSettingMethod) {
            super((long) (notificationSettingMethod == null ? 0 : notificationSettingMethod.getId()));
            MutabilityOwnership.m3745m(fVar, "actionCreator");
            MutabilityOwnership.m3745m(notificationSettingType, "notificationSettingType");
            boolean z = false;
            this.f19178d = fVar;
            this.f19179e = notificationSettingType;
            this.f19180f = notificationSettingMethod;
            this.f19181g = notificationSettingMethod != null ? notificationSettingMethod.getEnabled() : z;
        }

        @Override // p337mc.Item
        /* renamed from: b */
        public int mo3603b() {
            return R.layout.list_item_notification_type_item;
        }

        @Override // p364nc.BindableItem
        /* renamed from: e */
        public void mo3420e(ListItemNotificationTypeItemBinding hVar, int i) {
            ListItemNotificationTypeItemBinding hVar2 = hVar;
            MutabilityOwnership.m3745m(hVar2, "viewBinding");
            hVar2.f18252e.setText(this.f19179e.getName());
            hVar2.f18250c.setText(this.f19179e.getCaption());
            NotificationSettingMethod notificationSettingMethod = this.f19180f;
            CharcoalSwitch charcoalSwitch = hVar2.f18251d;
            MutabilityOwnership.m3746l(charcoalSwitch, "viewBinding.switch0");
            int i2 = 0;
            if (!(notificationSettingMethod != null)) {
                i2 = 8;
            }
            charcoalSwitch.setVisibility(i2);
            if (notificationSettingMethod != null) {
                hVar2.f18251d.setEnabled(true);
                hVar2.f18251d.setOnCheckedChangeListener(null);
                hVar2.f18251d.setChecked(this.f19181g);
                hVar2.f18251d.setOnCheckedChangeListener(new C5381h(this, notificationSettingMethod));
            }
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C4278d)) {
                return false;
            }
            C4278d dVar = (C4278d) obj;
            return MutabilityOwnership.m3749h(this.f19178d, dVar.f19178d) && MutabilityOwnership.m3749h(this.f19179e, dVar.f19179e) && MutabilityOwnership.m3749h(this.f19180f, dVar.f19180f);
        }

        @Override // p364nc.BindableItem
        /* renamed from: f */
        public ListItemNotificationTypeItemBinding mo3419f(View view) {
            MutabilityOwnership.m3745m(view, "view");
            int i = R.id.border;
            View b = ViewBindings.m9835b(view, R.id.border);
            if (b != null) {
                i = R.id.description;
                TextView textView = (TextView) ViewBindings.m9835b(view, R.id.description);
                if (textView != null) {
                    i = R.id.switch0;
                    CharcoalSwitch charcoalSwitch = (CharcoalSwitch) ViewBindings.m9835b(view, R.id.switch0);
                    if (charcoalSwitch != null) {
                        i = R.id.title;
                        TextView textView2 = (TextView) ViewBindings.m9835b(view, R.id.title);
                        if (textView2 != null) {
                            return new ListItemNotificationTypeItemBinding((ConstraintLayout) view, b, textView, charcoalSwitch, textView2);
                        }
                    }
                }
            }
            throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
        }

        public int hashCode() {
            int hashCode = (this.f19179e.hashCode() + (this.f19178d.hashCode() * 31)) * 31;
            NotificationSettingMethod notificationSettingMethod = this.f19180f;
            return hashCode + (notificationSettingMethod == null ? 0 : notificationSettingMethod.hashCode());
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("NotificationTypeItem(actionCreator=");
            c.append(this.f19178d);
            c.append(", notificationSettingType=");
            c.append(this.f19179e);
            c.append(", methodScreen=");
            c.append(this.f19180f);
            c.append(')');
            return c.toString();
        }
    }

    /* compiled from: NotificationSettingsActivity.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$e */
    /* loaded from: classes2.dex */
    public static final class C4279e extends BindableItem<ListItemNotificationTypeItemPushBinding> {

        /* renamed from: d */
        public final C5609f f19182d;

        /* renamed from: e */
        public final NotificationSettingType f19183e;

        /* renamed from: f */
        public final NotificationSettingMethod f19184f;

        /* renamed from: g */
        public boolean f19185g;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4279e(C5609f fVar, NotificationSettingType notificationSettingType, NotificationSettingMethod notificationSettingMethod) {
            super((long) notificationSettingMethod.getId());
            MutabilityOwnership.m3745m(fVar, "actionCreator");
            this.f19182d = fVar;
            this.f19183e = notificationSettingType;
            this.f19184f = notificationSettingMethod;
            this.f19185g = notificationSettingMethod.getEnabled();
        }

        @Override // p337mc.Item
        /* renamed from: b */
        public int mo3603b() {
            return R.layout.list_item_notification_type_item_push;
        }

        @Override // p364nc.BindableItem
        /* renamed from: e */
        public void mo3420e(ListItemNotificationTypeItemPushBinding iVar, int i) {
            ListItemNotificationTypeItemPushBinding iVar2 = iVar;
            MutabilityOwnership.m3745m(iVar2, "viewBinding");
            iVar2.f18254b.setOnCheckedChangeListener(null);
            iVar2.f18254b.setChecked(this.f19185g);
            iVar2.f18254b.setOnCheckedChangeListener(new C5382i(this));
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C4279e)) {
                return false;
            }
            C4279e eVar = (C4279e) obj;
            return MutabilityOwnership.m3749h(this.f19182d, eVar.f19182d) && MutabilityOwnership.m3749h(this.f19183e, eVar.f19183e) && MutabilityOwnership.m3749h(this.f19184f, eVar.f19184f);
        }

        @Override // p364nc.BindableItem
        /* renamed from: f */
        public ListItemNotificationTypeItemPushBinding mo3419f(View view) {
            MutabilityOwnership.m3745m(view, "view");
            int i = R.id.switch0;
            CharcoalSwitch charcoalSwitch = (CharcoalSwitch) ViewBindings.m9835b(view, R.id.switch0);
            if (charcoalSwitch != null) {
                i = R.id.title;
                TextView textView = (TextView) ViewBindings.m9835b(view, R.id.title);
                if (textView != null) {
                    return new ListItemNotificationTypeItemPushBinding((ConstraintLayout) view, charcoalSwitch, textView);
                }
            }
            throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
        }

        public int hashCode() {
            int hashCode = this.f19183e.hashCode();
            return this.f19184f.hashCode() + ((hashCode + (this.f19182d.hashCode() * 31)) * 31);
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("NotificationTypePushItem(actionCreator=");
            c.append(this.f19182d);
            c.append(", notificationSettingType=");
            c.append(this.f19183e);
            c.append(", methodPush=");
            c.append(this.f19184f);
            c.append(')');
            return c.toString();
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$g */
    /* loaded from: classes2.dex */
    public static final class C4281g extends Lambda implements AbstractC3435a<C5609f> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f19187a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4281g(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f19187a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [pk.f, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final C5609f invoke() {
            return C1124a.m10173s(this.f19187a).f24118a.m920a().m621a(Reflection.m5499a(C5609f.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$h */
    /* loaded from: classes2.dex */
    public static final class C4282h extends Lambda implements AbstractC3435a<NotificationSettingsStore> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f19188a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4282h(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f19188a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [java.lang.Object, pk.m] */
        @Override // p189gn.AbstractC3435a
        public final NotificationSettingsStore invoke() {
            return C1124a.m10173s(this.f19188a).f24118a.m920a().m621a(Reflection.m5499a(NotificationSettingsStore.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.notification.presentation.activity.NotificationSettingsActivity$i */
    /* loaded from: classes2.dex */
    public static final class C4283i extends Lambda implements AbstractC3435a<LegacyNavigation> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f19189a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C4283i(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f19189a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [java.lang.Object, xi.a] */
        @Override // p189gn.AbstractC3435a
        public final LegacyNavigation invoke() {
            return C1124a.m10173s(this.f19189a).f24118a.m920a().m621a(Reflection.m5499a(LegacyNavigation.class), null, null);
        }
    }

    public NotificationSettingsActivity() {
        super(R.layout.activity_notification_settings);
    }

    /* renamed from: S0 */
    public final C5609f m4580S0() {
        return (C5609f) this.f19166x.getValue();
    }

    /* renamed from: T0 */
    public final ActivityNotificationSettingsBinding m4579T0() {
        return (ActivityNotificationSettingsBinding) this.f19164v.getValue();
    }

    @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        MaterialToolbar materialToolbar = m4579T0().f18226d;
        MutabilityOwnership.m3746l(materialToolbar, "binding.toolBar");
        C0536v1.m11537h(this, materialToolbar, R.string.settings_notification);
        m4579T0().f18225c.setLayoutManager(new LinearLayoutManager(1, false));
        m4579T0().f18225c.setAdapter(this.f19165w);
        Disposable g = subscribers.m2589g(((NotificationSettingsStore) this.f19167y.getValue()).f24800f.m986o(AndroidSchedulers.m334a()), null, null, new p372nk.NotificationSettingsActivity(this), 3);
        CompositeDisposable aVar = this.f19163A;
        MutabilityOwnership.m3744n(aVar, "compositeDisposable");
        aVar.mo82c(g);
        Disposable g2 = subscribers.m2589g(((NotificationSettingsStore) this.f19167y.getValue()).f24801g.m986o(AndroidSchedulers.m334a()), null, null, new C5383k(this), 3);
        CompositeDisposable aVar2 = this.f19163A;
        MutabilityOwnership.m3744n(aVar2, "compositeDisposable");
        aVar2.mo82c(g2);
        C5609f S0 = m4580S0();
        S0.f24773e.mo2437b(new FirebaseAnalyticsAction(new ScreenView(AnalyticsScreenName.NOTIFICATION_SETTINGS, null, null, 6)));
        S0.f24773e.mo2437b(NotificationSettingsAction.C5596k.f24744a);
        Disposable e = subscribers.m2591e(S0.f24771c.m3767a(), new C5613g(S0), new C5615h(S0));
        CompositeDisposable aVar3 = S0.f24774f;
        MutabilityOwnership.m3744n(aVar3, "compositeDisposable");
        aVar3.mo82c(e);
    }

    @Override // p116e.ActivityC2727f, androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onDestroy() {
        this.f19163A.m80f();
        super.onDestroy();
    }

    @Override // androidx.activity.ComponentActivity, android.app.Activity
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        MutabilityOwnership.m3745m(menuItem, "item");
        if (menuItem.getItemId() != 16908332) {
            return super.onOptionsItemSelected(menuItem);
        }
        this.f940i.m12030b();
        return true;
    }

    @Override // androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onResume() {
        super.onResume();
        C5609f S0 = m4580S0();
        S0.f24773e.mo2437b(new NotificationSettingsAction.C5595j(S0.f24772d.m3768a()));
    }
}
